package scuts.core.instances;
import scuts.core.classes.Enumeration;
import utest.Assert;

/**
 * ...
 * @author 
 */

class EnumerationDateInDaysTest 
{

  var e:Enumeration<Date>;
  public function new() 
  {
    e = EnumerationDateInDays.get;
  }
  
  public function testPred() 
  {
    var d = new Date(2000, 10, 24, 2, 0, 0);
    
    var v = e.pred(d);
    
    Assert.equals(2000, v.getFullYear());
    Assert.equals(10, v.getMonth());
    Assert.equals(23, v.getDate());
    Assert.equals(0, v.getHours());
  }
  
  public function testSucc() 
  {
    var d = new Date(2000, 10, 24, 2, 0, 0);
    
    var v = e.succ(d);
    
    Assert.equals(2000, v.getFullYear());
    Assert.equals(10, v.getMonth());
    Assert.equals(25, v.getDate());
    Assert.equals(0, v.getHours());
    
    
  }
}